Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Title component #1338

Merged
merged 3 commits into from
Aug 12, 2020
Merged

feat: Title component #1338

merged 3 commits into from
Aug 12, 2020

Conversation

meganaconley
Copy link
Contributor

Description

Introduce Fiori 3 Title component and replace existing titles in other components with new Title component for consistency.

Screenshots

Screen Shot 2020-08-06 at 11 33 18 AM

Screen Shot 2020-08-06 at 11 33 23 AM

Screen Shot 2020-08-06 at 11 33 29 AM

Screen Shot 2020-08-06 at 11 33 46 AM

Please check whether the PR fulfills the following requirements

@netlify
Copy link

netlify bot commented Aug 6, 2020

Deploy preview for fundamental-styles ready!

Built with commit a52571d

https://deploy-preview-1338--fundamental-styles.netlify.app

@meganaconley meganaconley requested review from jacobdevera, a team and Mike-Diaz August 6, 2020 19:00
@@ -19,7 +20,9 @@ export const backBtn = () => `
<div class="fd-action-bar__back">
<button aria-label="button"class="fd-button fd-button--transparent fd-button--compact sap-icon--navigation-left-arrow"></button>
</div>
<h3 class="fd-action-bar__title">Page Title</h3>
<div class="fd-action-bar__title">
<h1 class="fd-title fd-title--h3">Page Title</h3>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the tag match the modifier class? <h3> ... --h3, <h1>... --h1 ? I'm afraid <h1 class="fd-title fd-title--h3"> will be very confusing for the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec does state the visual and semantic levels can be different. While it's confusing at first, it's a big win for accessibility. Often a design wants a smaller or larger heading than actually belongs on the page. This way developers can set the correct levels while styling them differently if needed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matching closing tag

Suggested change
<h1 class="fd-title fd-title--h3">Page Title</h3>
<h1 class="fd-title fd-title--h3">Page Title</h1>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec does state the visual and semantic levels can be different. While it's confusing at first, it's a big win for accessibility. Often a design wants a smaller or larger heading than actually belongs on the page. This way developers can set the correct levels while styling them differently if needed.

This is fine but me but I think this should be specified in documentation so users are not confused!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated documentation in this component and fixed the closing tag.

Copy link
Member

@prsdthkr prsdthkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks good to me after suggested change.

@@ -19,7 +20,9 @@ export const backBtn = () => `
<div class="fd-action-bar__back">
<button aria-label="button"class="fd-button fd-button--transparent fd-button--compact sap-icon--navigation-left-arrow"></button>
</div>
<h3 class="fd-action-bar__title">Page Title</h3>
<div class="fd-action-bar__title">
<h1 class="fd-title fd-title--h3">Page Title</h3>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matching closing tag

Suggested change
<h1 class="fd-title fd-title--h3">Page Title</h3>
<h1 class="fd-title fd-title--h3">Page Title</h1>

Copy link
Contributor

@JKMarkowski JKMarkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@InnaAtanasova InnaAtanasova self-requested a review August 12, 2020 20:11
@droshev droshev self-requested a review August 12, 2020 20:46
Copy link
Contributor

@droshev droshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants